﻿using System;
using System.ComponentModel.DataAnnotations;
using WeBlog.Interfaces;

namespace WeBlog.Models
{
    public class PostVisit : IModel
    {
        [Key]
        public int PostVisitId { get; set; }
        
        public int? VisitorId { get; set; }        
        public virtual User Visitor { get; set; }

        [Required]
        public DateTime DateTime { get; set; }

        [StringLength(15)]
        public string IpAddress { get; set; }        
    }
}
